package com.wwdx.service.impl;

import com.wwdx.model.WvirtualModel;
import com.wwdx.service.WvirtualServiceI;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liguoliang
 */
@Service
public class WvirtualServiceImpl extends BaseServiceImpl<WvirtualModel> implements WvirtualServiceI{

    @Override
    public Long selectModelCount() {
        return count("select count(1) from WvirtualModel");
    }

    @Override
    public List<WvirtualModel> selectModelList(Integer page, Integer rows){
        return find("from WvirtualModel order by price",page,rows);
    }
}